/*
 * @Author: zhangweixin 
 * @Date: 2019-03-30 22:19:37 
 * @Last Modified by: zhangweixin
 * @Last Modified time: 2019-03-30 22:20:18
 */
// app/extend/helper.js
const moment = require('moment');
exports.relativeTime = time => moment(new Date(time * 1000)).fromNow();